package kr.hkit.Eastjo_FinalProject;

import kr.hkit.eastjo_app_proj.*;
import android.app.Activity;
import android.content.Intent;
import android.os.*;
import android.util.*;

public class Intro extends Activity {
	Handler h;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.intro);

		h = new Handler();
		h.postDelayed(irun, 3000);
	}

	Runnable irun = new Runnable() {
		public void run() {
			Intent intent = new Intent(Intro.this, MainActivity.class);
			startActivity(intent);
			finish();
			Log.e("eastjo", "인트로시작");
		}
	};

	@Override
	public void onBackPressed() {
		super.onBackPressed();
		Log.e("eastjo", "리므브콜백");
		h.removeCallbacks(irun);
	}

}
